<script type="text/javascript">
$.CurrentNavtab.find('#arg-datagrid').datagrid({
    gridTitle : '提示：1）拥有子节点的参数不能被删除；',
    showToolbar: true,
    toolbarItem: "add,edit,del,save,|,refresh",
    local: 'remote',
    dataUrl:"sys/res/argumentMgr?action=findByPage&superId=${superId}",
   	/*data:$ { data},*/
    dataType: 'json',
    sortAll:false,
    fieldSortable:false,
    filterAll:true,
    columns: [
		{
		    name: 'id',
		    label: '数据ID',
		    align: 'center',
		    edit:false,
		    add:false,
		    width: 40
		},
		{
		    name: 'superId',
		    label: '上级ID',
		    align: 'center',
		    edit:false,
		    add:false,
		    width: 40
		},
        {
            name: 'superArgCode',
            label: '上级代码',
            align: 'center',
            edit:false,
            add:false,
            width: 60
        },
        {
            name: 'argCode',
            label: '参数代码',
            align: 'center',
            width: 60
        },
        {
            name: 'argName',
            label: '参数名称',
            align: 'center',
            width: 80
        },
        {
            name: 'content',
            label: '内容',
            align: 'left',
            width: 160
        },
        {
            name: 'orderid',
            label: '排序ID',
            align: 'center',
            width: 40
        },
        {
            name: 'isLeaf',
            label: '叶子',
            align: 'center',
            width: 40,
            type : 'select',
            items: [{'':''},{'true':'是'}, {'false':'否'}],
            render: $.datagrid.renderItem
        },
        {
            name: 'remark',
            label: '备注',
            align: 'center',
            width: 120
        }
    ],
    editUrl: 'sys/res/arugmentDataGridAction?action=save&superId=${superId}',
    delUrl: 'sys/res/arugmentDataGridAction?action=del',
    paging: {pageSize:10, pageCurrent:1},
    /*showEditbtnscol: true,*/
    linenumberAll: true,
    fullGrid:true
});
</script>
<div class="bjui-pageContent  tableContent">
     <table id="arg-datagrid" data-width="100%" data-nowrap="false" data-height="100%" class="table table-bordered">
     
     </table>
</div>